<template>
  <div>
    <h2>Item :{{ count }}</h2>
    <button @click="count++">累加</button>
    <button @click="$destroy()">销毁我自己</button>
    <hr />
    <button v-role="['jiangshi','admin']">配置试卷</button>
    <button v-role="['admin']">修改试卷分数</button>
    <button v-role="['admin','jiangshi','banzhuren']">查看试卷分数</button>
  </div>
</template>

<script>
export default {
  name: "Item",
  data() {
    return {
      count: 0,
    };
  },
};
</script>

<style scoped></style>
